<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"></meta>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
  <title>菜单管理</title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"></meta>
  <script th:src="@{/js/pub-lib/jquery.min.js}"></script>
  <script th:src="@{/js/pub-lib/bootstrap.min.js}"></script>
  <script th:src="@{/js/pub-lib/icheck.min.js}"></script>
  <script th:src="@{/js/pub-lib/select2.full.min.js}"></script>
  <script th:src="@{/js/pub-lib/plugins/easyui/jquery.easyui.min.js}"></script>
  <script type="text/javascript">
    $(function () {
        //easyui页码
        $('#page').pagination({
        	total:2000,
        	pageSize: 10,//每页显示的记录条数，默认为10
        	pageList: [10,20,30],//可以设置每页记录条数的列表
        	beforePageText: '第',//页数文本框前显示的汉字
        	afterPageText: '页    共 200  页',
        	displayMsg: '当前显示 1 - 10 条记录 共10  条记录',
        	onSelectPage:function(pageNumber, pageSize){//当用户选择新的页面时触发
        	}
   　　	    });
        //复选框
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
          checkboxClass: 'icheckbox_minimal-blue',
          radioClass   : 'iradio_minimal-blue'
        });
        //下拉框
        $('.select2').select2();
    })
  </script>
</head>
<body class="hold-transition skin-blue sidebar-mini" style="background:#ecf0f5;">
    <!--标题-->
    <section class="content-header">
      <h1>
        管理系统
        <small>菜单管理</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-home"></i> 首页</a></li>
        <li><a href="#">系统管理</a></li>
        <li class="active">菜单管理</li>
      </ol>
    </section>

    <!--内容-->
    <section class="content">
      <div class="box box-default">
        <div class="box-header with-border">
          <div class="row">
            <div class="col-md-12">

              <div class="form-inline">
                <div class="form-group">
                  <label >菜单名称：</label>
                  <input type="text" class="form-control" placeholder="请输入菜单名称"></input>
                </div>
                <button class="btn btn-info"><i class="fa fa-search"></i> 查询</button>
                <button class="btn btn-border" data-toggle="modal" data-target="#AddEditModal"><i class="fa fa-plus"></i> 新增</button>
              </div>

            </div>
          </div>
        </div>
        <div class="box-body">
          <div class="col-sm-12 myTable noLeftPadding noRightPadding">
                <table class="table table-bordered table-striped">
                  <thead>
                    <tr>
                      <th>序号</th>
                      <th>菜单编码</th>
                      <th>菜单名称</th>
                      <th>顺序</th>
                      <th>地址</th>
                      <th>父级菜单</th>
                      <th class="fontCenter">状态</th>
                      <th class="fontCenter">操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td>001</td>
                      <td>1001</td>
                      <td>用户管理</td>
                      <td>2</td>
                      <td>local</td>
                      <td>系统管理</td>
                      <td class="fontCenter">10</td>
                      <td class="fontCenter">
                        <a href="javascript:;" data-toggle="modal" data-target="#AddEditModal">修改</a>
                        <a href="javascript:;">删除</a>
                      </td>
                    </tr>
                    <tr>
                      <td>001</td>
                      <td>1001</td>
                      <td>用户管理</td>
                      <td>2</td>
                      <td>local</td>
                      <td>系统管理</td>
                      <td class="fontCenter">10</td>
                      <td class="fontCenter">
                        <a href="javascript:;" data-toggle="modal" data-target="#AddEditModal">修改</a>
                        <a href="javascript:;">删除</a>
                      </td>
                    </tr>
                    <tr>
                      <td>001</td>
                      <td>1001</td>
                      <td>用户管理</td>
                      <td>2</td>
                      <td>local</td>
                      <td>系统管理</td>
                      <td class="fontCenter">10</td>
                      <td class="fontCenter">
                        <a href="javascript:;" data-toggle="modal" data-target="#AddEditModal">修改</a>
                        <a href="javascript:;">删除</a>
                      </td>
                    </tr>
                    <tr>
                      <td>001</td>
                      <td>1001</td>
                      <td>用户管理</td>
                      <td>2</td>
                      <td>local</td>
                      <td>系统管理</td>
                      <td class="fontCenter">10</td>
                      <td class="fontCenter">
                        <a href="javascript:;" data-toggle="modal" data-target="#AddEditModal">修改</a>
                        <a href="javascript:;">删除</a>
                      </td>
                    </tr>
                  </tbody>
                </table>
                <div class="myPage">
                  <div id="page"></div>
                </div>
              </div>
        </div>
      </div>
    </section>
  <div class="control-sidebar-bg"></div>


<!--增加修改-->
<div class="modal fade" id="AddEditModal" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">增加菜单</h4>
      </div>
      <div class="modal-body">
            <form class="form-horizontal">
              <div class="box-body">

                <div class="form-group">
                  <label class="col-sm-3 control-label">菜单编码：</label>
                  <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="自动生成" disabled="disabled"></input>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">菜单名称：</label>
                  <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入菜单账号"></input>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">顺序：</label>
                  <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入顺序"></input>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">地址：</label>
                  <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入地址"></input>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">父级菜单：</label>
                  <div class="col-sm-9">
                    <div class="treeMenu">
                      <ul class="easyui-tree">
	                      <li>
	                          <span>单位类型</span>
	                          <ul>
	                              <li><span>系统管理</span></li>
	                              <li><span>系统管理</span></li>
	                          </ul>
	                      </li>
	                    </ul>
                    </div>
                  </div>
                </div>

              </div>
            </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">放弃</button>
        <button type="button" class="btn btn-primary">保存</button>
      </div>
    </div>
  </div>
</div>

</body>
</html>
